//
//  ZMHomeVC.m
//  demo
//
//  Created by chenzm on 2018/8/17.
//  Copyright © 2018年 chenzm. All rights reserved.
//

#import "ZMHomeVC.h"
#import "ZMHomeTV.h"

@interface ZMHomeVC ()<ZMHomeTVDelegate>

@property (nonatomic, strong) ZMHomeTV *homeTableView;

@end

@implementation ZMHomeVC

- (void)viewDidLoad {
    [super viewDidLoad];
    self.title = @"RuntimeTest";
    self.view.backgroundColor = [UIColor whiteColor];
    [self.view addSubview:self.homeTableView];
}

#pragma mark - 代理区域
- (void)didSelectRowWithController:(UIViewController *)controller {
    [self.navigationController pushViewController:controller animated:YES];
}

#pragma mark - 懒加载区域
- (ZMHomeTV *)homeTableView {
    if (!_homeTableView) {
        _homeTableView = [[ZMHomeTV alloc] initWithFrame:self.view.frame];
        _homeTableView.homeTableViewDelegate = self;
    }
    return _homeTableView;
}

@end
